<template>
  <div>
    <ul>
      <li v-for="i in data" :key="i">
        {{ i.name }}
        <router-link :to="{path:'/setparams',query:{id:i.id}}">参数配置</router-link>
      </li>
    </ul>
  </div>
</template>

<script>
import axios from "axios";
export default {
  name: "worklist",
  data() {
    return {
      data: "",
    };
  },
  methods: {
    getdata() {
      axios({ url: "/getholiday", method: "get" }).then((res) => {
        console.log(res);
        this.data = res.data.list;
      });
    },
  },
  mounted() {
    this.getdata()

  },
};
</script>

<style scoped></style>
